package com.funcourse.demo.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "pic_hub",type = "_doc", shards = 1, replicas = 0)
@AllArgsConstructor
@NoArgsConstructor
public class PicMeta {
  @Id
  String id;
  @Field(type = FieldType.Keyword)
  String previewUrl;
  @Field(type = FieldType.Keyword)
  String originalUrl;
  @Field(type = FieldType.Text)
  String tags;
}
